package com.unbox.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * <文件表实体类
 * </p>
 *
 * @author 王振宇
 * @since 2021-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("unbox_file")
@ApiModel(value = "File", description = "文件表")
public class File implements Serializable {
    private static final long serialVersionUID = 1L;
   /**
    * 文件id
    */
    @TableId(value = "file_id", type = IdType.AUTO)
    @ApiModelProperty(value = "文件id", name = "fileId")
    private Integer fileId;

   /**
    * 创建时间
    */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private LocalDateTime createTime;

   /**
    * 删除标记
    */
    @TableField(value = "is_del")
    @ApiModelProperty(value = "删除标记", name = "isDel")
    private Integer isDel;

   /**
    * 存放源
    */
    @TableField(value = "save_source")
    @ApiModelProperty(value = "存放源", name = "saveSource")
    private String saveSource;

   /**
    * 文件地址
    */
    @TableField(value = "url")
    @ApiModelProperty(value = "文件地址", name = "url")
    private String url;

   /**
    * 文件名称
    */
    @TableField(value = "name")
    @ApiModelProperty(value = "文件名称", name = "name")
    private String name;

   /**
    * 后缀
    */
    @TableField(value = "suffix")
    @ApiModelProperty(value = "后缀", name = "suffix")
    private String suffix;

   /**
    * 类型
    */
    @TableField(value = "type")
    @ApiModelProperty(value = "类型", name = "type")
    private String type;

   /**
    * 来源
    */
    @TableField(value = "source")
    @ApiModelProperty(value = "来源", name = "source")
    private String source;

    /**
     * dns
     */
    @TableField(value = "dns_url")
    private String dnsUrl;

    @TableField(value = "abbreviation_img")
    private String abbreviationImg;
}
